package com.wistech.search.solr.extend.model;

import javax.persistence.MappedSuperclass;

import org.springframework.data.annotation.Id;

import com.wistech.commons.entity.IdEntity;

@SuppressWarnings("serial")
@MappedSuperclass
public class BaseEntity implements IdEntity<Long> {
	@Id
	protected Long id;

	protected float score;

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.wistech.demo.entity.IdEntity#getId()
	 */
	@javax.persistence.Id
	public Long getId() {
		return id;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.wistech.demo.entity.IdEntity#setId(java.io.Serializable)
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the score
	 */
	public float getScore() {
		return score;
	}

	/**
	 * @param score
	 *            the score to set
	 */
	public void setScore(float score) {
		this.score = score;
	}
}
